# HG changeset patch # User Paul Boddie # Date 1275600805 -7200 # Node ID 975859cdcf2e9a3c91334a477c846efdee201f38 # Parent d211c584e3f2a1106464c2e8c5ef73e0b4838589 Fixed the table in the index template. Added a shortlog template with search box. Added escaping of repository names. diff -r d211c584e3f2 -r 975859cdcf2e themes/mercurialweb/index.tmpl --- a/themes/mercurialweb/index.tmpl Tue Jun 01 20:15:48 2010 +0200 +++ b/themes/mercurialweb/index.tmpl Thu Jun 03 23:33:25 2010 +0200 @@ -12,14 +12,18 @@
+ - - - - - - + + + + + + + {entries%indexentry} +
NameDescriptionContactLast change 
NameDescriptionContactLast change  +
diff -r d211c584e3f2 -r 975859cdcf2e themes/mercurialweb/map --- a/themes/mercurialweb/map Tue Jun 01 20:15:48 2010 +0200 +++ b/themes/mercurialweb/map Thu Jun 03 23:33:25 2010 +0200 @@ -5,6 +5,8 @@ footer = footer.tmpl index = index.tmpl indexentry = indexentry.tmpl +shortlog = shortlog.tmpl +shortlogentry = shortlogentry.tmpl summary = summary.tmpl urlparameter = '{separator}{name}={value|urlescape}' diff -r d211c584e3f2 -r 975859cdcf2e themes/mercurialweb/shortlog.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/shortlog.tmpl Thu Jun 03 23:33:25 2010 +0200 @@ -0,0 +1,26 @@ +{header} +Shortlog: {repo|escape} + + + + + + + + +{entries%shortlogentry} + +
+ +{footer} diff -r d211c584e3f2 -r 975859cdcf2e themes/mercurialweb/shortlogentry.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/shortlogentry.tmpl Thu Jun 03 23:33:25 2010 +0200 @@ -0,0 +1,6 @@ + + {date|age} ago + {author|person} + {desc|strip|firstline|escape} + files + diff -r d211c584e3f2 -r 975859cdcf2e themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Tue Jun 01 20:15:48 2010 +0200 +++ b/themes/mercurialweb/static/style-mercurialweb.css Thu Jun 03 23:33:25 2010 +0200 @@ -22,12 +22,6 @@ border: 0; } -/* Styling of headings from the main site. */ - -h1 { font-size: 2em; } -h2 { font-size: 1.6em; } -h3 { font-size: 1.3em; } - a:link, a:visited { color: #00b5f1; text-decoration: none; } a:link:hover, a:link:active, a:link:focus, a:visited:hover, a:visited:active, a:visited:focus { text-decoration: underline; } @@ -40,6 +34,37 @@ font-size: 0.8571em; } +/* Table styling. */ + +table +{ + margin: 1em; + border-collapse: collapse; +} + +th { + text-align: left; +} + +th a:link, th a:visited { + color: #111; +} + +th, td { + padding: 0.25em 0.5em 0.25em 0.5em; +} + +td p { + margin: 0; + padding: 0; +} + +/* Styling of headings from the main site. */ + +h1 { font-size: 2em; } +h2 { font-size: 1.6em; } +h3 { font-size: 1.3em; } + /* Navigational and editing controls. */ .controls { @@ -107,7 +132,7 @@ /* Margin and padding correspond to the navibar settings. */ - margin: 17px 0 2px 0; + margin: 0; padding: 0 16px; background: #999; @@ -121,7 +146,7 @@ vertical-align: middle; } -#searchform label, .actionsmenu label { +#searchform label { font-size: smaller; color: #fff; } diff -r d211c584e3f2 -r 975859cdcf2e themes/mercurialweb/summary.tmpl --- a/themes/mercurialweb/summary.tmpl Tue Jun 01 20:15:48 2010 +0200 +++ b/themes/mercurialweb/summary.tmpl Thu Jun 03 23:33:25 2010 +0200 @@ -1,5 +1,5 @@ {header} -Summary: {repo} +Summary: {repo|escape}